import * as vscode from "vscode";
import * as fs from "fs";
import * as path from "path";


export class TStdfReader {
  constructor(AFileName: string){
    //
  }
  close(){
    //释放
  }
  FOpenStdfFile(AFileName: string): void{
    //
  }
}

export class TFormShowStdfFile {
  FPannel: vscode.WebviewPanel;
  constructor(ARootPath: string){
    this.FPannel = vscode.window.createWebviewPanel(
      "StdfReader",
      "Stdf Reader",
      vscode.ViewColumn.One,
      {}
    );
    fs.readFile(path.join(ARootPath, "src/stdf/fromShowStdfFile.html"), "utf-8", (err, data: string) => {
      this.FPannel.webview.html = data;
    });
  }
  close(){
    //释放
  }
}